<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>错误页面</title>
</head>
<body>
<h1>登录出错</h1>
<c:choose>
    <c:when test="${param.msg == 'nullAccount'}">
        <p>账号不能为空，请输入账号。</p>
    </c:when>
    <c:when test="${param.msg == 'nullPassword'}">
        <p>密码不能为空，请输入密码。</p>
    </c:when>
    <c:when test="${param.msg == 'userNoExists'}">
        <p>用户不存在，请检查账号。</p>
    </c:when>
    <c:when test="${param.msg == 'passwordError'}">
        <p>密码错误，请重新输入。</p>
    </c:when>
    <c:when test="${param.msg == 'noPermission'}">
        <p>您没有权限查看该数据，请联系管理员！</p>
    </c:when>
    <c:otherwise>
        <p>未知错误，请稍后再试。</p>
    </c:otherwise>
</c:choose>
<a href="${pageContext.request.contextPath}/user/login">返回登录页面</a>
</body>
</html>